import request from '@/common/utils/request'

export function getUserList(data) {
  return request({
    url: 'user/list',
    method: 'post',
    data
  })
}

export function addUser(data) {
  return request({
    url: 'user/add',
    method: 'post',
    data
  })
}

export function updateUser(data) {
  return request({
    url: 'user/update',
    method: 'post',
    data
  })
}

export function deleteUser(data) {
  return request({
    url: "user/delete",
    method: 'post',
    data
  })
}

export function getAllUserList(data) {
  return request({
    url: 'user/get-all-list',
    method: 'post',
    data
  })
}

export function getUser(data) {
  return request({
    url: 'user/get-user',
    method: 'post',
    data
  })
}

export function getAllCarList(data) {
  return request({
    url: 'user/get-all-car-list',
    method: 'post',
    data
  })
}


export function getUserRole(data) {
  return request({
    url: 'user/get-user-role',
    method: 'post',
    data
  })
}
